package com.gzu.finalwork.entity.user;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class EmailMessage {
    private String toEmail;         // 接收邮件的邮箱地址
    private String subject;         // 邮件主题
    private String content;         // 邮件内容
    private String orderNumber;     // 订单号
    private Integer orderStatus;    // 订单状态
    private String operator;        // 操作员（配送员）
    private LocalDateTime timestamp; // 时间戳

    public EmailMessage() {
        this.timestamp = LocalDateTime.now();
    }

    public EmailMessage(String toEmail, String subject, String content, String orderNumber, Integer orderStatus, String operator) {
        this();
        this.toEmail = toEmail;
        this.subject = subject;
        this.content = content;
        this.orderNumber = orderNumber;
        this.orderStatus = orderStatus;
        this.operator = operator;
    }
}